<div id="content">
	<div class="row s_page_title">
		<sa-big-breadcrumbs [items]="['数据统计','修复记录']" icon="fa fa-area-chart" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<sa-widgets-grid>
		<div class="s_table">
			<div sa-widget [editbutton]="false" color="darken" class="clearfix">
				<header><span class="widget-icon"> <i class="fa fa-table"></i> </span><h2>修复记录</h2></header>
				<div>
					<div class="widget-body no-padding">
						<div class="page-header clearfix s_table_opreation">
							<div class="left page-header-btn">
								<div class="top_module">
									<span class="module_text">公司名称</span>
									<sa-company-tree companyTreeId="companyTree" (companySelected)="companySelected($event)"></sa-company-tree>                     
								</div>
								<div class="selectDate top_module">
									<table-select-date [notInit]='true' (outerTime)="getSelectTableTime($event)" ></table-select-date>
								</div>
								<div class="top_module">
									<span class="module_text">记录类型</span>
									<select name="" id="" class="module_inp" [(ngModel)]="recordType"  >
										<option value="">全部</option>
										<option value="1">数据修复</option>
										<option value="2">轨迹修复</option>
										
									</select>
								</div>
								<button type="button" class="btn btn-primary" (click)="search_data()">查询</button>
							</div>
							<div class="right top-search">
								<input class="search-input"[(ngModel)]='searchKey' (change)="table_search()" placeholder="车牌号,用户..." type="text">
								<span class="top-search-box">
							        <button class="top-search-btn" (click)="table_search()" type="button"> <i class="fa fa-search"></i></button>
							    </span>
							</div>
						</div>
						<div class="table_scroll">
							<table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
								<thead>
									<tr>
										<th>记录类型</th>
										<th>车牌号码</th>
										<th>记录时间</th>
										<th>用户名</th>
										<th>内容</th>
										
										
									</tr>
								</thead>
								<tbody>
									<tr *ngFor="let row of resultTableData" >
										<td>
											<span *ngIf="row.operation=='1'">数据修复</span>
											<span *ngIf="row.operation=='2'">轨迹修复</span>
										</td>
										<td>{{row.carNumber}}</td>
										<td>{{row.createTime}}</td>
										<td>{{row.userName}}</td>
										<td>{{row.content}}</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="table-fix clearfix">
							<paginator [totalRecords]="totalCount"
						           [rows]="pageSize"
						           [currentPage]="curPage - 1"
						           (onPageChange)="paginate($event)">
							</paginator>
							<button type="button" class="btn default refresh_btn" (click)="refresh()"><i class="fa fa-refresh"></i></button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</sa-widgets-grid>
</div>